package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicCarrier;
import cn.stylefeng.guns.modular.basic.model.params.BasicCarrierParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicCarrierResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 承运商档案 服务类
 * </p>
 *
 * @author zhucx
 * @since 2022-12-29
 */
public interface BasicCarrierService extends IService<BasicCarrier> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    void add(BasicCarrierParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    void delete(BasicCarrierParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    void update(BasicCarrierParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    BasicCarrierResult findBySpec(BasicCarrierParam param,Long operateId);

    /**
     * 根据承运商名称查询承运商信息
     * @param carrierName
     * @param operateId
     * @return
     */
    BasicCarrierResult findByCarrierName(String carrierName,Long operateId);


    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-29
     */
    List<BasicCarrierResult> findListBySpec(BasicCarrierParam param,Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-12-29
     */
     LayuiPageInfo findPageBySpec(BasicCarrierParam param,String condition,Long operateId);

}
